package com.teamall.web.sys.db.dao.mapper;

import com.teamall.web.sys.db.arg.DataDictArg;
import com.teamall.web.sys.db.po.DataDictPO;

import java.math.*;
import java.util.*;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface IDataDictMapper {
    
    List<Integer> countByArg(DataDictArg arg);

    List<DataDictPO> selectByArg(DataDictArg arg);

    DataDictPO selectByPrimaryKey(Integer id);

    List<DataDictPO> selectByArgAndPage(DataDictArg arg, RowBounds rowBound);

    int insert(DataDictPO record);

    int insertSelective(DataDictPO record);

    int insertBatch(@Param("list") List<DataDictPO> records);

    int updateByArgSelective(@Param("record") DataDictPO record,
            @Param("arg") DataDictArg arg);

    int updateByArg(@Param("record") DataDictPO record,
            @Param("arg") DataDictArg arg);

    int updateByPrimaryKeySelective(DataDictPO record);

    int updateByPrimaryKey(DataDictPO record);
    
    int deleteByArg(DataDictArg arg);
    
    int deleteByPrimaryKey(Integer id);
    
}